<template>
  <div class="userCollections" v-if="collections"></div>
  <div class="none" v-else>还没有创建专辑</div>
</template>

<script>
export default {
  data() {
    return {
      collections: null,
    };
  },
  created() {
    this.$axios
      // .get(`https://apis.netstart.cn/xpc/user/${this.$route.query.userid}/articles`)
      .get(
        `https://apis.netstart.cn/xpc/user/${this.$route.query.userid}/collections?page=1`
      )
      .then((res) => {
        console.log(res.data.data);
        // this.collections = res.data.data.list;
      });
  },
};
</script>

<style lang="scss" scoped>
.userCollections {
  
}

.none {
  font-size: 16px;
  color: #999;
  margin-top: 50px;
  text-align: center;
}
</style>
